<?php header('Content-type: text/html; charset=UTF-8'); ?>
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="UTF-8">
    <title>Administration</title>
    <?php

    // Konstante za URL
    define('LINK_URL',base_url().'administration/');
    define('CONTROLLER_URL',base_url().'administration/'.$this->uri->segment(1).'/');
    define('REFRESH_TIME',$this->config->item('refresh_time'));        
    ?>
    
    <!-- include jQuery UI Style  -->
    <link type="text/css" href="<?=base_url()?>css/smoothness/jquery-ui-1.10.1.custom.css" rel="stylesheet" />
    <?php  
    if( $this->session->userdata('admin_logged')) //ako jeste logovan onda ukljuci JS
    {
    ?>
    
    <!-- Set javascript URL's -->
    <script type="text/javascript">
        var BASE_URL = "<?=base_url();?>"; 
        var LINK_URL = "<?=LINK_URL?>";
        var AJAX_URL = "<?=LINK_URL?>ajax/"
        var CONTROLLER_URL = "<?=CONTROLLER_URL?>"; 
        var REFRESH_TIME = <?=REFRESH_TIME?>000;
    </script>

    <!-- include jQuery Library -->
    <script type="text/javascript" src="<?=base_url()?>js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="<?=base_url()?>js/jquery-migrate-git.js"></script>
    <!-- Form validation -->
    <script type="text/javascript" src="<?=base_url()?>js/jquery.validate.js"></script>
     
    <!-- include jQuery UI Library -->
    <script type="text/javascript" src="<?=base_url()?>js/jquery-ui-1.10.2.custom.min.js"></script>
    
    <!-- include jQuery Tablesorter Library -->
    <script type="text/javascript" src="<?=base_url()?>js/jquery.tablesorter.js"></script>
    <link type="text/css" href="<?=base_url()?>css/jquery.tablesorter.pager.css" rel="stylesheet" />
    <!-- include jQuery Tablesorter Pager Library -->
    <script type="text/javascript" src="<?=base_url()?>js/jquery.tablesorter.pager.js"></script>
    <link type="text/css" href="<?=base_url()?>css/tablesorter/style.css" rel="stylesheet" />
    
    <!-- include Library for pagination -->
    <script type="text/javascript" src="<?=base_url()?>js/virtualpaginate.js"></script>    
    
    <!-- TinyMCE Editor -->
    <script type="text/javascript" src="<?=base_url()?>js/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript" src="<?=base_url()?>js/tiny_mce_init.js"></script>
    
    <!-- Ajax Upload -->
    <script src="<?=base_url()?>js/jQueryUpload/jquery.ui.widget.js"></script>
    <script src="<?=base_url()?>js/jQueryUpload/jquery.iframe-transport.js"></script>
    <script src="<?=base_url()?>js/jQueryUpload/jquery.fileupload.js"></script>
    
    <!-- include dropdown checklist plugin -->
    <script type="text/javascript" src="<?=base_url()?>js/jquery.multiselect.min.js"></script>
    <script type="text/javascript" src="<?=base_url()?>js/jquery.multiselect.filter.js"></script>
    <link type="text/css" href="<?=base_url()?>css/jquery.multiselect.css" rel="stylesheet" />
    <link type="text/css" href="<?=base_url()?>css/jquery.multiselect.filter.css" rel="stylesheet" />
    
    <!-- AJAX script -->
    <script type="text/javascript" src="<?=base_url()?>js/ajax.js"></script>
    <script type="text/javascript" src="<?=base_url()?>js/ajax_function.js"></script>
        
    
    <?php } ?>
    
    <!-- Custom Admin CSS -->
    <link rel="stylesheet" type="text/css" href="<?=base_url()?>css/style_admin.css" />
    
   
</head>

<body>
    

    